package com.risetechnology.common;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.StateListDrawable;

public class ButtonBackground extends StateListDrawable {

	public ButtonBackground(Context context, 
			int pressedDrawableId, int defaultDrawableId) {
		// Pressed drawable
		Drawable pressedDrawable = context.getResources().getDrawable(
				pressedDrawableId);
		this.addState(new int[] { android.R.attr.state_pressed },
				pressedDrawable);

		// Default drawable
		Drawable defaultDrawable = context.getResources().getDrawable(
				defaultDrawableId);
		this.addState(new int[] {}, defaultDrawable);

	}

}
